package com.evan.uyclub.Happy;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import java.util.ArrayList;

public class FragmentAdapters extends FragmentPagerAdapter {

    ArrayList<Fragment> list;

    public FragmentAdapters(FragmentManager fm, ArrayList<Fragment> lists) {
        super(fm);
        this.list = lists;
    }

    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }
}